From 22e078580278c5403c80f9ed6b25de2d891cde5c Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Thu, 30 May 2019 18:34:51 +0200 Subject: [PATCH] build: Make script interpreter optional Running the tests needs it though, so it's only optional without tests. --- meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 3ea4ac57d2..2de01fac9c 100644 --- a/meson.build +++ b/meson.build @@ -461,7 +461,8 @@ if cc.get_id() == 'msvc' endif endif -cairo_csi_dep = cc.find_library('cairo-script-interpreter') +cairo_csi_dep = cc.find_library('cairo-script-interpreter', + required: get_option('build-tests')) if not harfbuzz_dep.found() harfbuzz_dep = dependency('harfbuzz', version: '>= 0.9', required: false, -- 2.30.2